<?php

namespace Shop\BooksBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Shop\BooksBundle\Entity\Book
 *
 * @ORM\Table(name="books")
 * @ORM\Entity(repositoryClass="Shop\BooksBundle\Entity\BookRepository")
 */
class Book
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string $book_name
     *
     * @ORM\Column(name="book_name", type="string", length=255)
     */
    private $book_name;

    /**
     * @var string $author
     *
     * @ORM\Column(name="author", type="string", length=255)
     */
    private $author;

    /**
     * @var text $description
     *
     * @ORM\Column(name="description", type="text")
     */
    private $description;

    /**
     * @var decimal $price
     *
     * @ORM\Column(name="price", type="decimal")
     */
    private $price;

    /**
     * @var integer $publish_year
     *
     * @ORM\Column(name="publish_year", type="integer")
     */
    private $publish_year;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set book_name
     *
     * @param string $bookName
     */
    public function setBookName($bookName)
    {
        $this->book_name = $bookName;
    }

    /**
     * Get book_name
     *
     * @return string 
     */
    public function getBookName()
    {
        return $this->book_name;
    }

    /**
     * Set author
     *
     * @param string $author
     */
    public function setAuthor($author)
    {
        $this->author = $author;
    }

    /**
     * Get author
     *
     * @return string 
     */
    public function getAuthor()
    {
        return $this->author;
    }

    /**
     * Set description
     *
     * @param text $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * Get description
     *
     * @return text 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set price
     *
     * @param decimal $price
     */
    public function setPrice($price)
    {
        $this->price = $price;
    }

    /**
     * Get price
     *
     * @return decimal 
     */
    public function getPrice()
    {
        return $this->price;
    }

    /**
     * Set publish_year
     *
     * @param integer $publishYear
     */
    public function setPublishYear($publishYear)
    {
        $this->publish_year = $publishYear;
    }

    /**
     * Get publish_year
     *
     * @return integer 
     */
    public function getPublishYear()
    {
        return $this->publish_year;
    }
}